from django.contrib import admin
from .models import TestTask, TestRecord, TestReport


# Register your models here.


@admin.register(TestTask)
class TestTaskAdmin(admin.ModelAdmin):
    list_display = ['id', 'project', 'name']


@admin.register(TestRecord)
class TestRecordAdmin(admin.ModelAdmin):
    list_display = ['id', 'task', 'all', 'success', 'fail', 'error', 'pass_rate', 'tester', 'env', 'statue',
                    'create_time']


@admin.register(TestReport)
class TestReportAdmin(admin.ModelAdmin):
    list_display = ['id', 'info', 'record']
